<?php

use yii\helpers\Url;
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
        <meta name="format-detection" content="telephone=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <title>用户注册 - 皓夜科技-任务派发平台</title>
        <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/??sm.min.css,sm-extend.min.css">
        <link rel="stylesheet" href="//at.alicdn.com/t/font_1460795318_8663795.css">
        <link rel="stylesheet" href="/css/weui.min.css">
        <link rel="stylesheet" href="/css/mob-main.css">
    </head>
    <body>
        <div class="page-group">
            <div class="page" id="page-reg">
                <header class="bar bar-nav">
                    <h1 class="title">注册</h1>
                    <a href="<?php echo Url::toRoute(["login"]); ?>" class="button pull-right">登录</a>
                </header>
                <div class="content native-scroll">
                    <div class="brand"></div>
                    <form  id="regform" url="<?php Url::toRoute(["site/signup"]) ?>">
                        <div class="list-block">
                            <ul>
                                <li>
                                    <div class="item-content">
                                        <div class="item-inner">
                                            <label class="item-title label" for="txtUserName">用户名</label>
                                            <div class="item-input">
                                                <input type="text"id="txtUserName" name="username">
                                            </div>
                                        </div>
                                    </div>
                                </li>
<!--                                <li>
                                    <div class="item-content">
                                        <div class="item-inner">
                                            <label class="item-title label" for="phoneNumber">手机号码</label>
                                            <div class="item-input">
                                                <input type="text" id="phoneNumber" name="phone">
                                            </div>
                                        </div>
                                    </div>
                                </li>-->
                                <li>
                                    <div class="item-content">
                                        <div class="item-inner">
                                            <label class="item-title label" for="txtPassword">密码</label>
                                            <div class="item-input">
                                                <input type="password" id="txtPassword" name="password">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li>
                                    <div class="item-content">
                                        <div class="item-inner">
                                            <label class="item-title label" for="txtPassword1">确认密码</label>
                                            <div class="item-input">
                                                <input type="password" id="txtPassword1" name="repassword">
                                            </div>
                                        </div>
                                    </div>
                                </li>
<!--                                <li>
                                    <div class="item-content">
                                        <div class="item-inner">
                                            <label class="item-title label" for="txtTrueName">真实姓名</label>
                                            <div class="item-input">
                                                <input type="text" id="txtTrueName" name="truename">
                                            </div>
                                        </div>
                                    </div>
                                </li>-->
<!--                                <li>
                                    <div class="item-content">
                                        <div class="item-inner">
                                            <label class="item-title label" for="alipay">支付宝</label>
                                            <div class="item-input">
                                                <input type="text" id="alipay" name="alipay">
                                            </div>
                                        </div>
                                    </div>
                                </li>-->
                                <li>
                                    <div class="item-content">
                                        <div class="item-inner">
                                            <label class="item-title label" for="qq">QQ号码</label>
                                            <div class="item-input">
                                                <input type="text" id="qq" name="qq">
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li>
                                    <div class="item-content">
                                        <div class="item-inner">
                                            <label class="item-title label" for="invite_code">邀请码</label>
                                            <div class="item-input">
                                                <input type="text" id="invite_code" name="invite_code" value="<?php echo Yii::$app->request->get("id"); ?>" placeholder="邀请人代码（必填）">
                                            </div>
                                        </div>
                                    </div>
                                </li>

                            </ul>
                        </div>
                        <div class="content-block">
                            <a href="javascript:;" class="button button-big button-fill button-success" id="btnSubmit">注册</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="//g.alicdn.com/sj/lib/zepto/zepto.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="//g.alicdn.com/msui/sm/0.6.2/js/??sm.min.js,sm-extend.min.js" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8" src="/js/weui.js"></script>
    <script type="text/javascript" charset="utf-8" src="/js/public.js"></script>
    <script>
        AjaxInitForm("#regform", "#btnSubmit", "<?php Url::toRoute(["site/signup"]) ?>");
    </script>
</script>
</body>
</html>